from dotenv import load_dotenv
import os

# 加载环境变量
load_dotenv()

# 高德地图配置
AMAP_KEY = os.getenv('AMAP_KEY', 'your_amap_key_here')
CITY_ADCODE = os.getenv('CITY_ADCODE', '411602')  # 城市编码

# Chat配置
AI_API_BASE = os.getenv('AI_API_BASE', "https://api.deepseek.com/v1")
AI_API_KEY = os.getenv('AI_API_KEY', 'sk-xxx')
AI_MODEL = os.getenv('AI_MODEL', 'your_model_here')

# TTS配置
TTS_API_KEY = os.getenv('TTS_API_KEY', 'your_model_here')
TTS_MODEL = os.getenv('TTS_MODEL', 'your_model_here')
TTS_VOICE = os.getenv('TTS_VOICE', 'your_voice_here')

# 传感器配置
DHT22_PIN = 4  # GPIO4
LIGHT_SENSOR_PIN = 23  # GPIO23
BMP280_I2C_ADDR = 0x76

# 时间配置
MORNING_START = os.getenv('MORNING_START', "07:00")
MORNING_END = os.getenv('MORNING_END', "09:00")

# 数据采集配置
SENSOR_READ_TIMES = 3  # 读取次数
SENSOR_READ_INTERVAL = 1  # 读取间隔（秒）